package ctimer
{
	public class Task
	{

		private var _taskFun:Function = null;
		private var _isCycle:Boolean = false;
		private var _time:uint = 0;
		private var _lastTime:uint = 0;		
		
		public function Task(fun:Function, time:uint, isCycle:Boolean){
			_taskFun = fun;
			_time = time;
			_lastTime = time;
			_isCycle = isCycle;
		}
		
		public function get Time():uint
		{
			return _time;
		}

		public function get IsCycle():Boolean
		{
			return _isCycle;
		}
		
		public function get TaskFun():Function
		{
			return _taskFun;
		}

		public function get LastTime():uint
		{
			return _lastTime;
		}

		public function set LastTime(value:uint):void
		{
			_lastTime = value;
		}

	}
}